package com.fwj.authorization.staff.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fwj.authorization.staff.entity.SysPermissionRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 权限角色
 *
 * @author 樊温军
 * @date 2025/3/18 上午10:32
 */
@Repository
public interface SysPermissionRoleMapper extends BaseMapper<SysPermissionRole> {

    /**
     * 权限角色码—分页
     *
     * @param page              分页对象
     * @param sysPermissionRole 查询条件
     * @return IPage<SysPermissionRole>
     */
    IPage<SysPermissionRole> getPage(Page<SysPermissionRole> page, @Param("map") SysPermissionRole sysPermissionRole);


}
